<template>
    <div className="basic-table">
        <basic-container>
            <el-table
                    :data="tableData"
                    style="width: 100%">
                <el-table-column
                        prop="name"
                        label="伯乐姓名"
                        align="center"
                        header-align="center">
                </el-table-column>
                <el-table-column
                        prop="mobile"
                        label="手机号"
                        align="center"
                        header-align="center">
                </el-table-column>
                <el-table-column
                        prop="resumeNum"
                        label="拥有人才数"
                        align="center"
                        sortable
                        header-align="center">
                </el-table-column>
                <el-table-column
                        prop="pushNum"
                        label="投递简历数"
                        align="center"
                        header-align="center"
                        sortable>
                </el-table-column>
                <el-table-column
                        prop="successNum"
                        label="成功推荐数"
                        align="center"
                        header-align="center"
                        sortable>
                </el-table-column>
                <el-table-column
                        prop="outNum"
                        label="淘汰简历数"
                        align="center"
                        header-align="center"
                        sortable>
                </el-table-column>
            </el-table>
        </basic-container>
    </div>
</template>

<script>
    import BasicContainer from '@vue-materials/basic-container'
    import Config from '@myconfig/config.min'
    import axios from 'axios'

    export default {
        components: {BasicContainer},
        name: 'BasicTable',

        data() {
            return {
                tableData: []
            }
        },
        created() {
            this.getData();
        },
        methods: {
            getData() {
                let _this = this;
                axios({
                    method: 'get',
                    url: Config.baseUrl + "/api/user/performance/bole",
                }).then(function (response) {
                    if (response.data.code != 1) {

                    } else {
                        _this.tableData = response.data.data;
                    }
                })
            }
        }

    }
</script>

<style>
    .basic-table {

    }
</style>
